package top.wettis.chat.service.impl;

import top.wettis.chat.pojo.DO.Occupation;
import top.wettis.chat.mapper.OccupationMapper;
import top.wettis.chat.pojo.VO.Result;
import top.wettis.chat.service.IOccupationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wettis
 * @since 2023-04-13
 */
@Service
public class OccupationServiceImpl extends ServiceImpl<OccupationMapper, Occupation> implements IOccupationService {

    @Override
    public Result<Object> selectAll() {
        List<Occupation> occupations=getBaseMapper().selectList(null);
        return Result.customInfo(200, "显示成功", occupations);
    }
}
